import React from 'react'
import ReactDOM from 'react-dom'
import styles from './BackDrop.module.css'
const backdropDom = document.getElementById('backdrop-root')
function BackDrop(props) {
    return ReactDOM.createPortal(<div
        {...props}
        className={styles.BackDrop}
    >{props.children}</div>, backdropDom)
}

export default BackDrop